package cn.mengfly.testnrz.netty.protobuf;

/**
 * @author Mengfly
 */
public class ProtobufDemo {

    public static MsgProtos.Msg buildMsg() {
        MsgProtos.Msg.Builder personBuilder = MsgProtos.Msg.newBuilder();
        personBuilder.setId(1000);
        personBuilder.setContent("这是一条测试的数据");
        return personBuilder.build();
    }

    public static void main(String[] args) {
        System.out.println(buildMsg());
    }
}
